package cn.jhz.learn.blog.dao.account;

import cn.jhz.learn.blog.po.account.AccountUserRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AccountUserRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AccountUserRole record);

    int insertSelective(AccountUserRole record);

    AccountUserRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AccountUserRole record);

    int updateByPrimaryKey(AccountUserRole record);

    /*自定义*/
    List<Integer> selectRolesIdByUserId(@Param("user_id") Integer userId);
}